/**
 * Copyright (c) 2018-2028, HQY 胡庆一 (215218393@qq.com).
 * <p>
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/lgpl.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ocm.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import io.swagger.annotations.ApiModel;

import java.io.Serializable;

/**
 * 实体类
 *
 * @author HQY
 * @since 2021-11-11
 */
@Data
@TableName("relation_category_attr")
@ApiModel(value = "CategoryAttr对象", description = "CategoryAttr对象")
public class CategoryAttr implements Serializable {

    private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@JsonSerialize(using = ToStringSerializer.class)
  	private Long id;

	@JsonSerialize(using = ToStringSerializer.class)
  	private Long categoryId;

	@JsonSerialize(using = ToStringSerializer.class)
  	private Long attrId;

	public CategoryAttr(Long id, Long categoryId, Long attrId) {
		this.id = id;
		this.categoryId = categoryId;
		this.attrId = attrId;
	}

	public CategoryAttr() {
	}
}
